package com.rran.study.designpattern.behavioral.state;

/**
 * @author yy
 * @Type Work.java
 * @Desc
 * @date 2020/7/27 19:02
 */
public class Work {

    private State state;

    private Integer hour;

    public Work() {
        state = new GoodMorning();
    }

    public void writeProgram() {
        state.WriteProgram(this);
    }

    public Integer getHour() {
        return hour;
    }

    public void setHour(Integer hour) {
        this.hour = hour;
    }

    public void setState(State state) {
        this.state = state;
    }

}
